package cn.edu.xmu.restfuldemo.model;

import cn.edu.xmu.restfuldemo.model.*;

import java.util.Date;
import java.util.List;


public class Orders implements VoObject {

    private OrdersPo ordersPo;

    public Orders(){this.ordersPo=new OrdersPo();}

    public Orders(OrdersPo ordersPo){this.ordersPo=ordersPo;}

    @Override
    public Object createVo() {
        return new OrderRetVo(this);
    }

    public OrdersPo getordersPo(){return this.ordersPo;}

    public Integer getId() {
        return ordersPo.getId();
    }

    public Integer getCustomerId() {
        return ordersPo.getCustomerId();
    }

    public Integer getShopId() {
        return ordersPo.getShopId();
    }

    public String getOrderSn() {
        return ordersPo.getOrderSn();
    }

    public Integer getPid() {
        return ordersPo.getPid();
    }

    public String getConsignee() {
        return ordersPo.getConsignee();
    }

    public Integer getRegionId() {
        return ordersPo.getRegionId();
    }

    public String getAddress() {
        return ordersPo.getAddress();
    }

    public String getMobile() {
        return ordersPo.getMobile();
    }

    public String getMessage() {
        return ordersPo.getMessage();
    }

    public Integer getOrderType() {
        return ordersPo.getOrderType();
    }

    public Integer getFreightPrice() {
        return ordersPo.getFreightPrice();
    }

    public Integer getCouponId() {
        return ordersPo.getCouponId();
    }

    public Integer getCouponActivityId() {
        return ordersPo.getCouponActivityId();
    }

    public Integer getDiscountPrice() {
        return ordersPo.getDiscountPrice();
    }

    public Integer getOriginPrice() {
        return ordersPo.getOriginPrice();
    }

    public Integer getPresaleId() {
        return ordersPo.getPresaleId();
    }

    public Integer getGrouponDiscount() {
        return ordersPo.getGrouponDiscount();
    }

    public Integer getRebateNum() {
        return ordersPo.getRebateNum();
    }

    public Date getConfirmTime() {
        return ordersPo.getConfirmTime();
    }

    public String getShipmentSn() {
        return ordersPo.getShipmentSn();
    }

    public Integer getState() {
        return ordersPo.getState();
    }

    public Integer getSubState() {
        return ordersPo.getSubState();
    }

    public Integer getBeDeleted() {
        return ordersPo.getBeDeleted();
    }

    public Date getGmtCreate() {
        return ordersPo.getGmtCreate();
    }

    public Date getGmtModified() {
        return ordersPo.getGmtModified();
    }

    public Integer getGrouponId() {
        return ordersPo.getGrouponId();
    }

    public void setId(Integer id) { ordersPo.setId(id);
    }

    public void setCustomerId(Integer customerId) { ordersPo.setCustomerId(customerId);
    }

    public void setShopId(Integer shopId) { ordersPo.setShopId(shopId);
    }

    public void setOrderSn(String orderSn) { ordersPo.setOrderSn(orderSn);
    }

    public void setPid(Integer pid) { ordersPo.setPid(pid);
    }

    public void setConsignee(String consignee) { ordersPo.setConsignee(consignee);
    }

    public void setRegionId(Integer regionId) { ordersPo.setRegionId(regionId);
    }

    public void setAddress(String address) { ordersPo.setAddress(address);
    }

    public void setMobile(String mobile) { ordersPo.setMobile(mobile);
    }

    public void setMessage(String message) { ordersPo.setMessage(message);
    }

    public void setOrderType(Integer orderType) { ordersPo.setOrderType(orderType);
    }

    public void setFreightPrice(Integer freightPrice) { ordersPo.setFreightPrice(freightPrice);
    }

    public void setCouponId(Integer couponId) { ordersPo.setCouponId(couponId);
    }

    public void setCouponActivityId(Integer couponActivityId) { ordersPo.setCouponActivityId(couponActivityId);
    }

    public void setDiscountPrice(Integer discountPrice) { ordersPo.setDiscountPrice(discountPrice);
    }

    public void setOriginPrice(Integer originPrice) { ordersPo.setOriginPrice(originPrice);
    }

    public void setPresaleId(Integer presaleId) { ordersPo.setPresaleId(presaleId);
    }

    public void setGrouponDiscount(Integer grouponDiscount) { ordersPo.setGrouponDiscount(grouponDiscount);
    }

    public void setRebateNum(Integer rebateNum) { ordersPo.setRebateNum(rebateNum);
    }

    public void setConfirmTime(Date confirmTime) { ordersPo.setConfirmTime(confirmTime);
    }

    public void setShipmentSn(String shipmentSn) { ordersPo.setShipmentSn(shipmentSn);
    }

    public void setState(Integer state) { ordersPo.setState(state);
    }

    public void setSubState(Integer subState) { ordersPo.setSubState(subState);
    }

    public void setBeDeleted(Integer beDeleted) { ordersPo.setBeDeleted(beDeleted);
    }

    public void setGmtCreate(Date gmtCreate) { ordersPo.setGmtCreate(gmtCreate);
    }

    public void setGmtModified(Date gmtModified) { ordersPo.setGmtModified(gmtModified);
    }

    public void setGrouponId(Integer grouponId) { ordersPo.setGrouponId(grouponId);
    }

    private List<OrderItem> orderItems;

    public  List<OrderItem> getOrderItems(){return orderItems;}

    public void setOrderItems(List<OrderItem> orderItems){this.orderItems=orderItems;}

    @Override
    public int hashCode() {
        return ordersPo.hashCode();
    }

    @Override
    public String toString() {
        return ordersPo.toString();
    }

    @Override
    public boolean equals(Object o) {
        return ordersPo.equals(((Orders)o).ordersPo);
    }
}
